<template>
<!--这是我的动态展示组件-->
  <div class="dynamicShow">
    <div class="useShow">
      <img :src="dynameicData.user.avatarUrl" alt="">
      <span>{{dynameicData.user.nickname}}</span>
    </div>
    <div class="content">
      <p>
        {{JSON.parse(dynameicData.json).msg}}
      </p>
      <div class="contentImg">
        <img v-for="(val,index) in dynameicData.pics" :key="index" :src="val.originUrl" alt="">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'dynameicShow',
  props:['dynameicData']
}
</script>

<style scoped lang='less'>
  .dynamicShow{
    .useShow{
      img{
        width: 50px;
        height: 50px;
        border-radius:50%;
        vertical-align:middle;
      }
    }
    .content{
      font-family: 'Courier New', Courier, monospace;
      .contentImg{
        width: 100%;
        img{
          width:20%;
          max-height: 220px;
          margin: 5px 5px;
        }
      }
    }
  }
</style>